.class Lcom/brixd/niceapp/community/activity/AlbumActivity$1;
.super Ljava/lang/Object;
.source "AlbumActivity.java"

# interfaces
.implements Lcom/brixd/niceapp/community/adapter/AlbumAdapter$OnPictureCheckedChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/activity/AlbumActivity;->initWidgetsActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/activity/AlbumActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/activity/AlbumActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/activity/AlbumActivity;

    .prologue
    .line 104
    iput-object p1, p0, Lcom/brixd/niceapp/community/activity/AlbumActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/AlbumActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onCheckedChanged(Lcom/brixd/niceapp/community/model/PictureModel;Landroid/widget/CompoundButton;)V
    .registers 7
    .param p1, "model"    # Lcom/brixd/niceapp/community/model/PictureModel;
    .param p2, "buttonView"    # Landroid/widget/CompoundButton;

    .prologue
    const/4 v3, 0x0

    .line 108
    invoke-virtual {p2}, Landroid/widget/CompoundButton;->isChecked()Z

    move-result v0

    .line 110
    .local v0, "isChecked":Z
    if-eqz v0, :cond_26

    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/AlbumActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/AlbumActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/AlbumActivity;->mLastSelectedCount:I
    invoke-static {v1}, Lcom/brixd/niceapp/community/activity/AlbumActivity;->access$000(Lcom/brixd/niceapp/community/activity/AlbumActivity;)I

    move-result v1

    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/AlbumActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/AlbumActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/AlbumActivity;->mSelectedPictures:Ljava/util/ArrayList;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/AlbumActivity;->access$100(Lcom/brixd/niceapp/community/activity/AlbumActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    add-int/2addr v1, v2

    const/16 v2, 0x9

    if-lt v1, v2, :cond_26

    .line 111
    const v1, 0x7f0c009e

    invoke-static {v1, v3}, Lcom/brixd/niceapp/util/ToastUtils;->show(II)V

    .line 112
    invoke-virtual {p2, v3}, Landroid/widget/CompoundButton;->setChecked(Z)V

    .line 125
    :goto_25
    return-void

    .line 115
    :cond_26
    invoke-virtual {p1, v0}, Lcom/brixd/niceapp/community/model/PictureModel;->setIsChecked(Z)V

    .line 116
    if-eqz v0, :cond_3c

    .line 117
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/AlbumActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/AlbumActivity;

    # invokes: Lcom/brixd/niceapp/community/activity/AlbumActivity;->addPictureToSelected(Lcom/brixd/niceapp/community/model/PictureModel;)V
    invoke-static {v1, p1}, Lcom/brixd/niceapp/community/activity/AlbumActivity;->access$200(Lcom/brixd/niceapp/community/activity/AlbumActivity;Lcom/brixd/niceapp/community/model/PictureModel;)V

    .line 122
    :goto_30
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/AlbumActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/AlbumActivity;

    # invokes: Lcom/brixd/niceapp/community/activity/AlbumActivity;->updatePreviewBtn()V
    invoke-static {v1}, Lcom/brixd/niceapp/community/activity/AlbumActivity;->access$400(Lcom/brixd/niceapp/community/activity/AlbumActivity;)V

    .line 124
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/AlbumActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/AlbumActivity;

    const/4 v2, 0x1

    # setter for: Lcom/brixd/niceapp/community/activity/AlbumActivity;->mIsDirty:Z
    invoke-static {v1, v2}, Lcom/brixd/niceapp/community/activity/AlbumActivity;->access$502(Lcom/brixd/niceapp/community/activity/AlbumActivity;Z)Z

    goto :goto_25

    .line 119
    :cond_3c
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/AlbumActivity$1;->this$0:Lcom/brixd/niceapp/community/activity/AlbumActivity;

    # invokes: Lcom/brixd/niceapp/community/activity/AlbumActivity;->removePictureFromSelected(Lcom/brixd/niceapp/community/model/PictureModel;)V
    invoke-static {v1, p1}, Lcom/brixd/niceapp/community/activity/AlbumActivity;->access$300(Lcom/brixd/niceapp/community/activity/AlbumActivity;Lcom/brixd/niceapp/community/model/PictureModel;)V

    goto :goto_30
.end method
